// 导入http库
import http from '../../utils/http';

export default {
  queryChildDept(data) {
    return http.post('/api/dept/queryChild', data)
  },
  saveDept(data) {
    return http.post('/api/dept/save', data)
  },
  queryTree(data) {
    return http.post('/api/dept/queryTree', data)
  },
  updateDept(data) {
    return http.put('/api/dept/update', data)
  },
  deleteDept(data) {
    return http.delete('/api/dept/delete', data)
  },
}
